﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
namespace ModuleConfig
{
    public class PayloadLength
    {
        public uint PL { get; set; }
    }

    public class CurrentPL : INotifyPropertyChanged
    {
        public CurrentPL()
        { }

        private uint _PL = 20;
        public uint PL
        {
            get { return _PL; }
            set 
            {
                if (_PL != value)
                {
                    _PL = value;
                    NotifyPropertyChanged("PL");
                }
            }
        }

        private void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        public event PropertyChangedEventHandler PropertyChanged; 
    }

}
